# 导包
import requests

# 封装登录接口
class ihrmLogin:
    @classmethod
    def ihrm_login(cls,mobile,pwd):
        herderData = {"Content-Type":"application/json"}
        jsonData = {"mobile":mobile,"password":pwd}
        resp = requests.post(url='http://ihrm2-test.itheima.net/api/sys/login',
                             headers=herderData,
                             json=jsonData)
        return resp


if __name__ == '__main__':
    print(ihrmLogin.ihrm_login("13800000002","123456").json())